package grun

import "encoding/json"

func LoadParam(ParamInterface interface{}, Param interface{}) error {
	if p, err := json.Marshal(ParamInterface); err != nil {
		return err
	} else {
		if err := json.Unmarshal(p, Param); err != nil {
			return err
		}
	}
	return nil
}
